home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000092_news@columbia.edu _Mon Apr 30 20:15:45 2001.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id UAA22300
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Mon, 30 Apr 2001 20:15:45 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id TAA27620
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 30 Apr 2001 19:56:52 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. Message-ID: <3AEDFBAE.50CE1602@worldnet.att.net>
  10. From: "David L. Harfst" <harfst@worldnet.att.net>
  11. Subject: Re: renaming during ftp
  12. Date: Mon, 30 Apr 2001 23:56:51 GMT
  13. Organization: AT&T Worldnet
  14. To: kermit.misc@columbia.edu
  15.  
  16. The kermit solution assumes that the remote system also has kermit.
  17. Kermit is a cool program, when you get into scripting and the like.
  18.  
  19. ftp can be used to rename files as well, though.  Don't know how it
  20. would work into your script but,
  21.  
  22.   put filenameX filenameY
  23.  
  24. sends filenameX and renames it to filenameY in the process.
  25.  
  26. Similarly,
  27.  
  28.   get filenameX filenameY
  29.  
  30. pulls filenameX from the remote systems and saves it as filenameY.
  31.  
  32.  
  33. Frank da Cruz wrote:
  34. > In article <9ck60u$hds$1@kermit.esat.net>,
  35. > Dermot Beirne <dermot.beirne@walshwestern.com> wrote:
  36. > : We have a HP 9000 server running 10.20 that sends files to a customer using
  37. > : ftp.  These files are renamed to include the time after being sent, and put
  38. > : in a backup directory.  The current script is sending a file, quitting out
  39. > : of ftp, then renaming it and backing it up, then logging in again to send
  40. > : the next one, and so on!  This means the files are timestamped with the time
  41. > : they were sent, which is what we want, but because there could typically be
  42. > : 200 or 300 files every few minutes, this is very slow and inefficent.
  43. > :
  44. > Yes indeed.  You would like to have an FTP client that can do all this
  45. > on a per-file basis automatically, right?
  46. > HP-UX comes with a program called "kermit".  The version bundled with
  47. > HP-UX 10.20 is 6.0, which does most of this with Kermit (not FTP) protocol.
  48. > Version 7.0 (which HP hasn't picked up yet) does even more of this, but
  49. > still not with FTP protocol.
  50. > Version 7.1, which HP will pick up for HP-UX 11.20, does all this for FTP
  51. > connections too.  It has a whole built-in, scriptable FTP client.  You can
  52. > try it right now.  See:
  53. >   http://www.columbia.edu/kermit/ftpclient.html
  54. > and (for a tutorial on FTP scripting):
  55. >   http://www.columbia.edu/kermit/ftpscript.html
  56. > It is available for HP-UX 10.20 and every other version of HP-UX from
  57. > 5.21 to 11.xx.
  58. > : This will send all the files starting with p to the customer.  If the script
  59. > : has to send 300 files in one go, by the time it gets to timestamping and
  60. > : backing them up, the times can but several minutes out.  I would like to
  61. > : timestamp them at the time they were actually sent and then send the next
  62. > : one without logging out.  Has anyone done this?  If so then any advice would
  63. > : be appreciated.
  64. > :
  65. > It can do all this too, but it's a bit too much to explain in this message.
  66. > If you pick up the C-Kermit 7.1 FTP client and start working with it, I'll
  67. > be glad to help you with this part.
  68. > - Frank